package com.demo.user.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户主表
 *
 * @author DayDayUp
 * create on 2023-05-18
 **/
@Data
@Table("user_main")
public class UserMain {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.flexId)
    private Long id;

    @Column("username")
    private String username;

    @Column("sex")
    private String sex;

    @Column("age")
    private Integer age;

    @Column("note")
    private String note;

    @Column("create_by")
    private Long createBy;

    @Column("create_time")
    private LocalDateTime createTime;

    @Column("update_by")
    private Long updateBy;

    @Column("update_time")
    private LocalDateTime updateTime;

}
